home *** CD-ROM | disk | FTP | other *** search
/ Developer CD Series 1996 February: Tool Chest / Apple Developer CD Series Tool Chest February 1996 (Apple Computer)(1996).iso / Sample Code / AOCE Sample Code / PowerTalk Access Modules / Sample SMSAM / SampleSMSAM Source / 2020HalfGateway / AOCEDataItem.h < prev    next >
Encoding:
C/C++ Source or Header  |  1995-07-28  |  1.2 KB  |  46 lines  |  [TEXT/KAHL]

  1. /*
  2.     File:        AOCEDataItem.h
  3.  
  4.     Copyright:    © 1991-1994 by Apple Computer, Inc.
  5.                 All rights reserved.
  6.  
  7.     Part of the AOCE Sample SMSAM Package.  Consult the license
  8.     which came with this software for your specific legal rights.
  9.  
  10. */
  11.  
  12.  
  13.  
  14. #ifndef __AOCEDATAITEM__
  15. #define __AOCEDATAITEM 1
  16.  
  17. #ifndef __BLJSTANDARDINCLUDES__
  18. #include "BLJStandardIncludes.h"
  19. #endif
  20.  
  21. #ifndef __DATAITEM__
  22. #include "DataItem.h"
  23. #endif
  24.  
  25. /***********************************|****************************************/
  26.  
  27. const DescType typePackedRecordID = 'pRID';
  28. const DescType typeAuthKey = 'athK';
  29.  
  30. /***********************************|****************************************/
  31.  
  32. class CAOCEDataItem : public CDataItem {
  33. public:        CAOCEDataItem ();
  34.             CAOCEDataItem ( unsigned long length, DescType dataType = typeWildCard );
  35.             CAOCEDataItem ( const void* source, unsigned long length, DescType dataType = typeWildCard );
  36.             CAOCEDataItem ( const ADataItem& );
  37.             CAOCEDataItem ( const RecordID& recordID );
  38.             CAOCEDataItem ( const AuthKey& key );
  39.             
  40.     virtual    ~CAOCEDataItem ();
  41.  
  42.     virtual    CAOCEDataItem&            operator = ( const RecordID& recordID );
  43.     virtual CAOCEDataItem&            operator = ( const AuthKey& key );
  44. };
  45.  
  46. #endif // __AOCEDATAITEM__